package com.usian.service;

import com.usian.pojo.SearchItem;
import org.elasticsearch.action.DocWriteResponse;

import java.io.IOException;
import java.util.List;

public interface SearchItemService {

    Boolean importAll();

    /**
     * 商品搜索
     * @param q
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<SearchItem> searchItemList(String q, Integer pageNum, Integer pageSize);

    int updateIndex(String msg) throws IOException;

    int insertIndex(String msg) throws IOException;

    int deleteIndex(String msg)throws IOException;
}
